package com.feiyi.app.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.feiyi.app.R;
import com.feiyi.app.bean.HomePageBean;

import java.util.List;

/**
 * @author wangliantao
 * @time 2018 11 2018/11/18 3:31 AM
 * @email 1346947404@qq.com
 * @package com.feiyi.app.adapter
 * @describe： In me the tiger sniffs the rose
 */
public class ArticleListAdapter extends BaseQuickAdapter<HomePageBean.DataBean.ArticlesBean,BaseViewHolder> {

    public ArticleListAdapter(int layoutResId, @Nullable List<HomePageBean.DataBean.ArticlesBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomePageBean.DataBean.ArticlesBean item) {
            helper.setText(R.id.tv_article,item.getTitle());
    }
}
